home *** CD-ROM | disk | FTP | other *** search
Text File | 1998-12-13 | 2.7 KB | 74 lines | [TEXT/ToyS] |
- tell application "iView Multimedia 3.4"
-
-
- -- •• APPLICATION LEVEL
- -- ---------------------
- -- open file "macos:" -- open/print file (folder) examples
- -- open {file "macos:", file "media:"} -- open list of documents
- -- print file "media:iView catalogs:my catalog"
-
- -- close saving yes -- you can also use "quit" with saving no|ask
- -- get properties -- get a list of application properties (you may inquire each in isolation)
- -- get the version -- get a single property value
- -- count windows
- -- if get the frontmost = false then -- check if iView Multimedia is in front
- -- activate -- ...if false activate it
- -- end if
-
- -- quit -- default (saving ask)
- -- quit saving yes -- save without asking (iView Multimedia may still ask for a name)
- -- quit saving no -- ignore changes
-
-
- -- •• MARKS
- -- --------
- -- get the name of mark 1
- -- get the name of every mark
- -- set the name of mark 1 to "Signed Off"
- -- get the color of mark 1
- -- get the color of every mark
- -- set the color of mark 1 to {0, 32000, 0}
- -- get the properties of mark 2
- -- set the properties of mark 2 to {name:"In Progress", color:{64000, 32000, 0}}
-
-
- -- •• WINDOW (CATALOG) LEVEL
- -- --------------------------
- -- duplicate window 1 -- make an exact copy of the catalog>
- -- get the name of every window -- getting a list of opened catalogs
- -- copy the bounds of window 1 to myRect -- getting and setting the size of a window
- -- copy (item 3 of myRect) + 10 to w
- -- copy (item 4 of myRect) + 10 to h
- -- copy w to item 3 of myRect
- -- copy h to item 4 of myRect
- -- set the bounds of window 1 to myRect
- -- get properties of window 1 -- get a full list of window properties
-
- -- making and saving catalogs
- -- open file "macos:utilities:"
- -- activate
- -- repeat while the importing of window 1 is true
- -- do something here...
- -- end repeat
- -- save window 1 in file "media:test.cat"
- -- close window 1
-
- -- counting/finding open windows
- -- repeat with i from 1 to 3
- -- make window
- -- end repeat
- -- count (windows whose name contains "Catalog")
-
-
- -- •• OBJECT (MEDIA) LEVEL
- -- -----------------------
- -- get the properties of object 1 of window 1
- -- get the name of every object of window 1
- -- set the name of object 11 of window 1 to "help italian"
- -- tell window 1
- -- get the name of every object whose mark id is 1
- -- set the mark id of every object whose name contains "ela" to 7
- -- end tell
-
-
- end tell